function combine<Type>(arr1: Type[], arr2: Type[]): Type[] {
  return arr1.concat(arr2)
}

// const arr1 = combine([1, 2, 3], ["hello"])
const arr2 = combine<string | number>([1, 2, 3], ["hello"])